﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;

namespace WFWS.Core
{
    public class HttpListener:HttpListenerBase
    {

        private HttpListener(int port, HttpServer server,Action<Socket> executor)
            : base(port,server,executor)
        {
        }

        public static HttpListener Create(int port,HttpServer server,Action<Socket> executor)
        {
            return new HttpListener(port, server, executor);
        }

        protected override bool OnAcceptingSocket(System.Net.Sockets.Socket socket)
        {
            return true;
        }
    }
}
